<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
</head>
<body>

<input type="button" onclick="disp_alert()" value="显示消息框" />
4446
<a href="http://localhost:8080/cas/logout?service=https://www.baidu.com/">退出</a>
<a href="http://localhost:8088/testLogout?service=https://www.baidu.com/">退出1</a>
</body>
</html>
<script type="text/javascript">
function disp_alert1(){
	var a={
			"criteriaList": [{
				"domain": "rangeSrcIP_filter_rule",
				"op": "intersects",
				"opVal": "192.168.1.1-192.168.1.2"
			}, {
				"domain": "rangeSrcIP_filter_rule",
				"op": "within",
				"opVal": "192.168.1.3"
			}],
			"containsAny": true
		};
	$.ajax({
		url:"http://localhost:8080/zeepos/solr/select",
		dataType : "json",
		type:'get',
// 		data:{zq:{
// 			"criteriaList": [{
// 				"domain": "ip4SrcAddresses_filter_rule",
// 				"op": "intersects",
// 				"opVal": "192.168.1.1-192.168.1.2"
// 			}, {
// 				"domain": "ip4SrcAddresses_filter_rule",
// 				"op": "within",
// 				"opVal": "192.168.1.3"
// 			}],
// 			"containsAny": true
// 		}},
		data:
		{zq:[
			{
				"criteriaList": [{
					"domain": "ip4SrcAddresses_filter_rule",
					"op": "intersects",
					"opVal": "192.168.1.1-192.168.1.2"
				}, {
					"domain": "ip4SrcAddresses_filter_rule",
					"op": "within",
					"opVal": "192.168.1.3"
				}],
				"containsAny": true
			},
			{
	 			"criteriaList": [{
	 				"domain": "srcPort_filter_rule",
	 				"op": "intersects",
	 				"opVal": "70-80"
	 			}, {
	 				"domain": "srcPort_filter_rule",
	 				"op": "within",
	 				"opVal": "80"
	 			}],
	 			"containsAny": true
	 		},
			{
				"criteriaList": [{
					"domain": "action_filter_rule",
					"op": "notEquals",
					"opVal": "PERMIT"
				}]
			},{
				"criteriaList": [{
					"domain": "name_filter_rule",
					"op": "notContains",
					"opVal": "444"
				}]
			}
			
			
// 			{
// 				"criteriaList": [{
// 					"domain": "IP4AddressRange_filter_rule",
// 					"op": "intersects",
// 					"opVal": "tcp/8"
// 				}, {
// 					"domain": "IP4AddressRange_filter_rule",
// 					"op": "within",
// 					"opVal": "udp/9-10"
// 				}, {
// 					"domain": "IP4AddressRange_filter_rule",
// 					"op": "contains",
// 					"opVal": "6-7"
// 				}, {
// 					"domain": "IP4AddressRange_filter_rule",
// 					"op": "intersects",
// 					"opVal": "icmp/11-12,0-8"
// 				}],
// 				"containsAny": false
// 			}
// 			{
// 			"criteriaList": [{
// 				"domain": "srcPort_filter_rule",
// 				"op": "intersects",
// 				"opVal": "70-80"
// 			}, {
// 				"domain": "srcPort_filter_rule",
// 				"op": "within",
// 				"opVal": "80"
// 			}],
// 			"containsAny": true
// 		}
			
// 			{
// 			"criteriaList": [{
// 				"domain": "ip4SrcAddresses_filter_rule",
// 				"op": "intersects",
// 				"opVal": "192.168.1.1-192.168.1.2"
// 			}, {
// 				"domain": "ip4SrcAddresses_filter_rule",
// 				"op": "within",
// 				"opVal": "192.168.1.3"
// 			}],
// 			"containsAny": true
// 		}
// 		, {
// 			"criteriaList": [{
// 				"domain": "tcpUdpServiceTypePort_filter_rule",
// 				"op": "intersects",
// 				"opVal": "tcp/8"
// 			}, {
// 				"domain": "tcpUdpServiceTypePort_filter_rule",
// 				"op": "within",
// 				"opVal": "udp/9-10"
// 			}, {
// 				"domain": "otherServiceTypePort_filter_rule",
// 				"op": "contains",
// 				"opVal": "6-7"
// 			}, {
// 				"domain": "icmpServiceTypePort_filter_rule",
// 				"op": "intersects",
// 				"opVal": "icmp/11-12,0-8"
// 			}],
// 			"containsAny": false
// 		}
		]},
		success:function(data){
// 			alert(data);
// 			 window.location=data;
			alert(data);
			alert(11);
// 			window.location=data;
		},
		 error: function(xhr, error,data){
		        alert(xhr.status);
		        alert(error);
// 		        window.location = "http://localhost:8080/cas/login?service=http://localhost:8088/123.html";
		        alert(data);
// 		        window.location=data;
		    }
	});
}


function disp_alert(){
	
	$.ajax({
		url:"http://localhost:8088/solr7/save",
		dataType : "json",
		type:'post',
		data:{name:"123"},
		success:function(data){
// 			alert(data);
// 			 window.location=data;
			alert(data);
			alert(11);
// 			window.location=data;
		},
		 error: function(xhr, error,data){
		        alert(xhr.status);
		        alert(error);
// 		        window.location = "http://localhost:8080/cas/login?service=http://localhost:8088/123.html";
		        alert(data);
// 		        window.location=data;
		    }
	});
}
</script>